import store from "@/store";

export default [
    {
        path: "pay",
        name: "AdminPay",
        component: () => import("@/views/zhifu/zhifu"),
        meta: { authLogin: true },
    },

    {
        path: "admins",
        name: "AdminadminsList",
        component: () => import("@/views/admins/list"),
        meta: { title: "管理员列表", authLogin: true },
    },
    {
        path: "adminsadd",
        name: "AdminadminsAdd",
        component: () => import("@/views/admins/add"),
        meta: { title: "添加管理员", authLogin: true },
    },
    {
        path: "adminsupdt",
        name: "AdminadminsUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑管理员", authLogin: true },
    },
    {
        path: "adminsupdtself",
        name: "AdminadminsUpdtSelf",
        props: (route) => ({ id: store.state.user.session.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑管理员", authLogin: true },
    },
    {
        path: "yonghu",
        name: "AdminyonghuList",
        component: () => import("@/views/yonghu/list"),
        meta: { title: "用户列表", authLogin: true },
    },
    {
        path: "yonghuadd",
        name: "AdminyonghuAdd",
        component: () => import("@/views/yonghu/add"),
        meta: { title: "添加用户", authLogin: true },
    },
    {
        path: "yonghuupdt",
        name: "AdminyonghuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/yonghu/updt"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "yonghuupdtself",
        name: "AdminyonghuUpdtSelf",
        props: (route) => ({ id: store.state.user.session.id }),
        component: () => import("@/views/yonghu/updt"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "yonghudetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminyonghuDetail",
        component: () => import("@/views/yonghu/detail"),
        meta: { title: "用户详情", authLogin: true },
    },
    {
        path: "xinwenfenlei",
        name: "AdminxinwenfenleiList",
        component: () => import("@/views/xinwenfenlei/list"),
        meta: { title: "新闻分类列表", authLogin: true },
    },
    {
        path: "xinwenfenleiadd",
        name: "AdminxinwenfenleiAdd",
        component: () => import("@/views/xinwenfenlei/add"),
        meta: { title: "添加新闻分类", authLogin: true },
    },
    {
        path: "xinwenfenleiupdt",
        name: "AdminxinwenfenleiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/xinwenfenlei/updt"),
        meta: { title: "编辑新闻分类", authLogin: true },
    },
    {
        path: "xinwenxinxi",
        name: "AdminxinwenxinxiList",
        component: () => import("@/views/xinwenxinxi/list"),
        meta: { title: "新闻信息列表", authLogin: true },
    },
    {
        path: "xinwenxinxi_tianjiaren",
        name: "AdminxinwenxinxiListtianjiaren",
        component: () => import("@/views/xinwenxinxi/list-tianjiaren"),
        meta: { title: "新闻信息列表", authLogin: true },
    },
    {
        path: "xinwenxinxiadd",
        name: "AdminxinwenxinxiAdd",
        component: () => import("@/views/xinwenxinxi/add"),
        meta: { title: "添加新闻信息", authLogin: true },
    },
    {
        path: "xinwenxinxiupdt",
        name: "AdminxinwenxinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/xinwenxinxi/updt"),
        meta: { title: "编辑新闻信息", authLogin: true },
    },
    {
        path: "xinwenxinxidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminxinwenxinxiDetail",
        component: () => import("@/views/xinwenxinxi/detail"),
        meta: { title: "新闻信息详情", authLogin: true },
    },
    {
        path: "liuyanban",
        name: "AdminliuyanbanList",
        component: () => import("@/views/liuyanban/list"),
        meta: { title: "留言板列表", authLogin: true },
    },
    {
        path: "liuyanban_liuyanren",
        name: "AdminliuyanbanListliuyanren",
        component: () => import("@/views/liuyanban/list-liuyanren"),
        meta: { title: "留言板列表", authLogin: true },
    },
    {
        path: "liuyanbanadd",
        name: "AdminliuyanbanAdd",
        component: () => import("@/views/liuyanban/add"),
        meta: { title: "添加留言板", authLogin: true },
    },
    {
        path: "liuyanbanupdt",
        name: "AdminliuyanbanUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/liuyanban/updt"),
        meta: { title: "编辑留言板", authLogin: true },
    },
    {
        path: "liuyanbandetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminliuyanbanDetail",
        component: () => import("@/views/liuyanban/detail"),
        meta: { title: "留言板详情", authLogin: true },
    },
    {
        path: "lunbotu",
        name: "AdminlunbotuList",
        component: () => import("@/views/lunbotu/list"),
        meta: { title: "轮播图列表", authLogin: true },
    },
    {
        path: "lunbotuadd",
        name: "AdminlunbotuAdd",
        component: () => import("@/views/lunbotu/add"),
        meta: { title: "添加轮播图", authLogin: true },
    },
    {
        path: "lunbotuupdt",
        name: "AdminlunbotuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/lunbotu/updt"),
        meta: { title: "编辑轮播图", authLogin: true },
    },
    {
        path: "pinglun",
        name: "AdminpinglunList",
        component: () => import("@/views/pinglun/list"),
        meta: { title: "评论列表", authLogin: true },
    },
    {
        path: "pinglun_pinglunren",
        name: "AdminpinglunListpinglunren",
        component: () => import("@/views/pinglun/list-pinglunren"),
        meta: { title: "评论列表", authLogin: true },
    },
    {
        path: "pinglunupdt",
        name: "AdminpinglunUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/pinglun/updt"),
        meta: { title: "编辑评论", authLogin: true },
    },
    {
        path: "shoucang",
        name: "AdminshoucangList",
        component: () => import("@/views/shoucang/list"),
        meta: { title: "收藏列表", authLogin: true },
    },
    {
        path: "shoucang_username",
        name: "AdminshoucangListusername",
        component: () => import("@/views/shoucang/list-username"),
        meta: { title: "收藏列表", authLogin: true },
    },
    {
        path: "youxifenlei",
        name: "AdminyouxifenleiList",
        component: () => import("@/views/youxifenlei/list"),
        meta: { title: "游戏分类列表", authLogin: true },
    },
    {
        path: "youxifenleiadd",
        name: "AdminyouxifenleiAdd",
        component: () => import("@/views/youxifenlei/add"),
        meta: { title: "添加游戏分类", authLogin: true },
    },
    {
        path: "youxifenleiupdt",
        name: "AdminyouxifenleiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/youxifenlei/updt"),
        meta: { title: "编辑游戏分类", authLogin: true },
    },
    {
        path: "shangpinxinxi",
        name: "AdminshangpinxinxiList",
        component: () => import("@/views/shangpinxinxi/list"),
        meta: { title: "商品信息列表", authLogin: true },
    },
    {
        path: "shangpinxinxi_faburen",
        name: "AdminshangpinxinxiListfaburen",
        component: () => import("@/views/shangpinxinxi/list-faburen"),
        meta: { title: "商品信息列表", authLogin: true },
    },
    {
        path: "shangpinxinxiadd",
        name: "AdminshangpinxinxiAdd",
        component: () => import("@/views/shangpinxinxi/add"),
        meta: { title: "添加商品信息", authLogin: true },
    },
    {
        path: "shangpinxinxiupdt",
        name: "AdminshangpinxinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/shangpinxinxi/updt"),
        meta: { title: "编辑商品信息", authLogin: true },
    },
    {
        path: "shangpinxinxidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminshangpinxinxiDetail",
        component: () => import("@/views/shangpinxinxi/detail"),
        meta: { title: "商品信息详情", authLogin: true },
    },
    {
        path: "youxixinxi",
        name: "AdminyouxixinxiList",
        component: () => import("@/views/youxixinxi/list"),
        meta: { title: "游戏信息列表", authLogin: true },
    },
    {
        path: "youxixinxiadd",
        name: "AdminyouxixinxiAdd",
        component: () => import("@/views/youxixinxi/add"),
        meta: { title: "添加游戏信息", authLogin: true },
    },
    {
        path: "youxixinxiupdt",
        name: "AdminyouxixinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/youxixinxi/updt"),
        meta: { title: "编辑游戏信息", authLogin: true },
    },
    {
        path: "youxixinxidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminyouxixinxiDetail",
        component: () => import("@/views/youxixinxi/detail"),
        meta: { title: "游戏信息详情", authLogin: true },
    },
    {
        path: "changshangxinxi",
        name: "AdminchangshangxinxiList",
        component: () => import("@/views/changshangxinxi/list"),
        meta: { title: "厂商信息列表", authLogin: true },
    },
    {
        path: "changshangxinxiadd",
        name: "AdminchangshangxinxiAdd",
        component: () => import("@/views/changshangxinxi/add"),
        meta: { title: "添加厂商信息", authLogin: true },
    },
    {
        path: "changshangxinxiupdt",
        name: "AdminchangshangxinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/changshangxinxi/updt"),
        meta: { title: "编辑厂商信息", authLogin: true },
    },
    {
        path: "changshangxinxidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminchangshangxinxiDetail",
        component: () => import("@/views/changshangxinxi/detail"),
        meta: { title: "厂商信息详情", authLogin: true },
    },
    {
        path: "gouwuche",
        name: "AdmingouwucheList",
        component: () => import("@/views/gouwuche/list"),
        meta: { title: "购物车列表", authLogin: true },
    },
    {
        path: "gouwuche_goumairen",
        name: "AdmingouwucheListgoumairen",
        component: () => import("@/views/gouwuche/list-goumairen"),
        meta: { title: "购物车列表", authLogin: true },
    },
    {
        path: "gouwucheadd",
        name: "AdmingouwucheAdd",
        component: () => import("@/views/gouwuche/add"),
        meta: { title: "添加购物车", authLogin: true },
    },
    {
        path: "gouwucheupdt",
        name: "AdmingouwucheUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/gouwuche/updt"),
        meta: { title: "编辑购物车", authLogin: true },
    },
    {
        path: "gouwuchedetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmingouwucheDetail",
        component: () => import("@/views/gouwuche/detail"),
        meta: { title: "购物车详情", authLogin: true },
    },
    {
        path: "dingdanxinxi",
        name: "AdmindingdanxinxiList",
        component: () => import("@/views/dingdanxinxi/list"),
        meta: { title: "订单信息列表", authLogin: true },
    },
    {
        path: "dingdanxinxi_xiadanren",
        name: "AdmindingdanxinxiListxiadanren",
        component: () => import("@/views/dingdanxinxi/list-xiadanren"),
        meta: { title: "订单信息列表", authLogin: true },
    },
    {
        path: "dingdanxinxiadd",
        name: "AdmindingdanxinxiAdd",
        component: () => import("@/views/dingdanxinxi/add"),
        meta: { title: "添加订单信息", authLogin: true },
    },
    {
        path: "dingdanxinxiupdt",
        name: "AdmindingdanxinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/dingdanxinxi/updt"),
        meta: { title: "编辑订单信息", authLogin: true },
    },
    {
        path: "dingdanxinxidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmindingdanxinxiDetail",
        component: () => import("@/views/dingdanxinxi/detail"),
        meta: { title: "订单信息详情", authLogin: true },
    },
    {
        path: "dingdanfahuo",
        name: "AdmindingdanfahuoList",
        component: () => import("@/views/dingdanfahuo/list"),
        meta: { title: "订单发货列表", authLogin: true },
    },
    {
        path: "dingdanfahuo_xiadanren",
        name: "AdmindingdanfahuoListxiadanren",
        component: () => import("@/views/dingdanfahuo/list-xiadanren"),
        meta: { title: "订单发货列表", authLogin: true },
    },
    {
        path: "dingdanfahuo_fahuoren",
        name: "AdmindingdanfahuoListfahuoren",
        component: () => import("@/views/dingdanfahuo/list-fahuoren"),
        meta: { title: "订单发货列表", authLogin: true },
    },
    {
        path: "dingdanfahuoadd",
        name: "AdmindingdanfahuoAdd",
        component: () => import("@/views/dingdanfahuo/add"),
        meta: { title: "添加订单发货", authLogin: true },
    },
    {
        path: "dingdanfahuoupdt",
        name: "AdmindingdanfahuoUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/dingdanfahuo/updt"),
        meta: { title: "编辑订单发货", authLogin: true },
    },
    {
        path: "dingdanfahuodetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmindingdanfahuoDetail",
        component: () => import("@/views/dingdanfahuo/detail"),
        meta: { title: "订单发货详情", authLogin: true },
    },
    {
        path: "dingdanqianshou",
        name: "AdmindingdanqianshouList",
        component: () => import("@/views/dingdanqianshou/list"),
        meta: { title: "订单签收列表", authLogin: true },
    },
    {
        path: "dingdanqianshou_qianshouren",
        name: "AdmindingdanqianshouListqianshouren",
        component: () => import("@/views/dingdanqianshou/list-qianshouren"),
        meta: { title: "订单签收列表", authLogin: true },
    },
    {
        path: "dingdanqianshouadd",
        name: "AdmindingdanqianshouAdd",
        component: () => import("@/views/dingdanqianshou/add"),
        meta: { title: "添加订单签收", authLogin: true },
    },
    {
        path: "dingdanqianshouupdt",
        name: "AdmindingdanqianshouUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/dingdanqianshou/updt"),
        meta: { title: "编辑订单签收", authLogin: true },
    },
    {
        path: "dingdanqianshoudetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmindingdanqianshouDetail",
        component: () => import("@/views/dingdanqianshou/detail"),
        meta: { title: "订单签收详情", authLogin: true },
    },
    {
        path: "youqinglianjie",
        name: "AdminyouqinglianjieList",
        component: () => import("@/views/youqinglianjie/list"),
        meta: { title: "友情链接列表", authLogin: true },
    },
    {
        path: "youqinglianjieadd",
        name: "AdminyouqinglianjieAdd",
        component: () => import("@/views/youqinglianjie/add"),
        meta: { title: "添加友情链接", authLogin: true },
    },
    {
        path: "youqinglianjieupdt",
        name: "AdminyouqinglianjieUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/youqinglianjie/updt"),
        meta: { title: "编辑友情链接", authLogin: true },
    },
];
